package com.example.building_material_mannager.controller;

import com.example.building_material_mannager.entity.Sell;
import com.example.building_material_mannager.service.SellService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class SellController {
@Resource
    SellService sellService;
    //添加
    public void add(){
        System.out.println("添加");
    }
    //添加
    public void del(){
        System.out.println("删除");
    }
    //修改
    public void update(){
        System.out.println("修改");
    }
    //查询
    public List<Sell> select(Sell sell){
        List<Sell> sells = sellService.select(sell);
        return sells;
    }
}
